import request from "@/utlis/request";

enum API {
  FINDPAGE_URL = "/cpt/findPage", //查询
  SAVE_URL = "/cpt/save", //新增和编辑
  DELETE_URL = "/cpt/delete", //删除
}

export const reqFindPage = async (data: any) => {
  return request.post<any, any>(API.FINDPAGE_URL, data);
};

export const reqSave = async (data: any) => {
  return request.post<any, any>(API.SAVE_URL, data);
};

export const reqDelete = async (data: any) => {
  return request.post<any, any>(API.DELETE_URL, data);
};
